package com.gxa.xc.rbac.controller;

import com.gxa.xc.rbac.dto.ResultDTO;
import com.gxa.xc.rbac.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author:IT-CNLM
 * @date:Created at 2020/10/26
 */
@RestController
@RequestMapping("/menu")
public class MenuController {


    @Autowired
    private MenuService menuService;

    /**
     * 获取菜单数据
     * @param session
     * @return
     */
    @PostMapping("/list/data")
    public ResultDTO getMenu(HttpSession session){
        return menuService.menuList(session);
    }



}
